package com.item.service.impl;

import com.github.pagehelper.PageHelper;
import com.item.domain.UserPay;
import com.item.mapper.UserPayMapper;
import com.item.service.UserPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserPayServiceImpl implements UserPayService {

    @Autowired
    UserPayMapper userPayMapper;


    public List<UserPay> userFindAll(int limit, int page) {

        PageHelper.startPage(limit, page);

        return userPayMapper.selectAll();
    }

}
